﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Ewelve_Mouth_HD.DAL.Migrations
{
    public partial class ulkgfdsg : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "RoomNub",
                columns: table => new
                {
                    NubId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    RoomName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NubCard = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NubSay = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NubStage = table.Column<int>(type: "int", nullable: false),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    IsDelete = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RoomNub", x => x.NubId);
                });

            migrationBuilder.CreateTable(
                name: "RoomType",
                columns: table => new
                {
                    RoomId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    RoomName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    RoomPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    IsMoney = table.Column<int>(type: "int", nullable: false),
                    Money = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    RoomArea = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    RoomLevel = table.Column<int>(type: "int", nullable: false),
                    JiaChaung = table.Column<int>(type: "int", nullable: false),
                    TypePhoto = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    RoomSay = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    IsDelete = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RoomType", x => x.RoomId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "RoomNub");

            migrationBuilder.DropTable(
                name: "RoomType");
        }
    }
}
